<?php
require 'authorControl.php';
$message = new message();
$gb = new authorControl();
$pen = new leavelModel();
$book = new gbookModel();
$book->setBookPath('book.txt');
$page = $_GET['page'];

if(isset($_POST)){
    $message->name = $_POST['name'];
    $message->email = $_POST['email'];
    $message->content = $_POST['content'];
    $gb->message($pen,$book,$message);
    Header("Location:book.php?page=$page");
    exit;
}
//echo $gb->view($book);




